#!/bin/bash

# Подключение алиасов в .bashrc
# [ -f ~/.alias ] && source ~/.alias
# xbacklight -set 40 настройка яркости
# export BROWSER='qutebrowser'
#
# alias fd='sudo fdisk -l'
# alias mount=udiskie
# alias umount='udiskie-umount --detach /run/media/pvit/'
# alias rm='rm -rf '
# alias prog='xprop | grep WM_CLASS'
# alias sdn='shutdown -h now'
# -------------------------------------

# exports ---------------------------------------------------------------------

export EDITOR='nvim'

# PROGRAMS --------------------------------------------------------------------

alias r='ranger'
alias ya='yazi'
alias shred='shred -zvu'
alias sx='startx'
alias ttyc='tty-clock -bcs -B -C6'
alias calc='calcurse'
alias cct='calcurse -at'
alias ht='htop'

alias f='fish'
alias lg='lazygit'
alias v='nvim'

# NAVIGATION ------------------------------------------------------------------

alias lt='exa -la --tree --level=2 --icons'
alias l='exa -l'
alias ll='exa -la'

# GIT -------------------------------------------------------------------------

alias gcd="git commit -m (date '+%d-%m-%Y %H:%M:%S')"

# WEATHER ---------------------------------------------------------------------

alias wttr='curl wttr.in/Simferopol,Russia'
alias moon='curl wttr.in/moon'

# YOUTUBE-DL MPV --------------------------------------------------------------

# alias ydm='echo youtube-dl -f "bestaudio/best" -ciw -o "%(title)s.%(ext)s" -v --extract-audio --audio-quality 0'
# alias ydv="echo youtube-dl -f best -u 'uname' -p 'password' -cwi -a "
# alias ydy='echo youtube-dl -f best -cwi'

# alias ydm='youtube-dl -f "bestaudio/best" -ciw -o "%(title)s.%(ext)s" -v --extract-audio --audio-quality 0'
# alias ydv="youtube-dl -f best -u 'uname' -p 'password' -cwi -a "
# alias ydy='youtube-dl -f best -cwi'

alias ydm="yt-dlp -f 'bestaudio/best' -ciw -o '%(title)s.%(ext)s' -v --extract-audio --audio-quality 0"
alias ydv="yt-dlp -f 'bestvideo/best,bestaudio/best' -u 'uname' -p 'password' -cwi -a "
alias ydy="yt-dlp -f 'bestvideo/best,bestaudio/best' -cwi -o '%(playlist_index)s-%(title)s.%(ext)s' "
alias yd="yt-dlp -f 'bestvideo/best,bestaudio/best' -cwi -o '%(playlist_index)s-%(title)s.%(ext)s' "

# RESET XINIT -----------------------------------------------------------------------

alias rx='source ~/.xinitrc'

# RADIO -----------------------------------------------------------------------

alias radio="mpv http://79.120.77.11:8002/deathmetal"
alias symphony="mpv http://79.111.14.76:8000/symphony"

alias ff=far2l

# CONFIGS -----------------------------------------------------------------------
alias nconf="cd ~/.config/nvim/ && nvim ."

# Copy Pass
alias cpri="cp ~/Documents/_Sync/Temp/Private/Passwords.kdbx ~/.upr/kpa/"


alias fp="fish --private"


#TMUX ----------------------------------------------------------------------------
alias tx="tmuxinator"

